package net.atomtree.service.facade;

import net.atomtree.service.IndexService;
import net.atomtree.service.Interface.IndexFacade;

/**
 * Created by czk on 2016/1/4.
 */
public class IndexServiceFacade implements IndexFacade {

    @Override
    public Object invocation(String jobId) throws Exception {
//        IndexService service=new IndexService();
//        String currUrl=service.getCorrespondUrl(jobId);
//        String jsonArr=service.getRestResult(currUrl);
//        int countMode=service.getModel();
//        Object obj=service.jsonAnalyse(jsonArr, service.getModel());
//        if (null==obj){
//            throw new Exception("json analyse error");
//        }
//        //shuffle计算
//        if(countMode==SHUFFLE){
//            return  obj;
//        }
//        //迭代计算
//        if(countMode==ALTERNATE){
//            return  obj;
//        }
//        throw new Exception();
        return "";
    }


}
